Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @nomicfoundation/hardhat-chai-matchers from 1.0.6 to 2.0.2 #107

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

Woodpile37
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade @nomicfoundation/hardhat-chai-matchers from 1.0.6 to 2.0.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 5 versions ahead of your current version.
  • The recommended version was released 21 days ago, on 2023-08-10.
Release notes
Package name: @nomicfoundation/hardhat-chai-matchers
  • 2.0.2 - 2023-08-10

    This release forbids our async matchers from being chained. This means that you can't do something like:

    await expect(contract.f())
      .to.changeEtherBalance(...)
      .and.to.changeTokenBalance(...)

    This never worked properly, leading to potential false positives in tests. Now this pattern will throw an error to make it clear that it's not supported.

    If some of your tests start throwing because of this, the way to do the same thing without chaining is:

    const tx = contract.f();

    await expect(tx).to.changeEtherBalance(...);
    await expect(tx).to.changeTokenBalance(...);




  • 2.0.1 - 2023-06-08


  • 2.0.0 - 2023-05-31


  • 2.0.0-beta.0 - 2023-04-03


  • 1.0.7-dev.0 - 2023-04-10


  • 1.0.6 - 2023-02-09


from @nomicfoundation/hardhat-chai-matchers GitHub release notes

Commit messages
Package name: @nomicfoundation/hardhat-chai-matchers

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@changeset-bot
Copy link

changeset-bot bot commented Aug 31, 2023

⚠️ No Changeset found

Latest commit: 89e559e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@socket-security
Copy link

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: @nomicfoundation/[email protected]

@Woodpile37 Woodpile37 merged commit 73efd14 into master Sep 13, 2023
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants